package com.cs.study.homework._0205;

import java.util.Scanner;

public class Print {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入行数 n = ");
        int n = sc.nextInt();
        System.out.print("请输入列数 m = ");
        int m = sc.nextInt();
        printTable(n,m);
    }

    //打印n行m列井号
    public static void printTable(int n, int m){
        //行数n
        for (int i = 1; i <= n; i++) {
            //列数m
            for (int j = 1; j <= m; j++) {
                System.out.print("#");
            }
            System.out.println();
        }
    }
}
